package com.x.erp.model;

import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 延保商品
 */
@MappingTable(tableName = "ERP_INSURANCE_GOODS")
public class InsuranceGoods extends BaseObject {

	private static final long serialVersionUID = -190757461033369117L;

	@MappingColumn(columnName = "GOODS_ID", columnPk = true, columnLength = 32)
	private String goodsId;// 延保商品Id

	@MappingColumn(columnName = "GOODS_NAME")
	private String goodsName;// 商品名称

	@MappingColumn(columnName = "GOODS_SERVER_DESC")
	private String goodsServerDesc;// 服务范围

	@MappingColumn(columnName = "GOODS_ADVICE_PRICE")
	private BigDecimal goodsAdvicePrice;// 建议售价（元）

	@MappingColumn(columnName = "GOODS_DISCOUNT_DESC")
	private String goodsDiscountDesc;// 优惠说明

	@MappingColumn(columnName = "GOODS_PRICE_DESC")
	private String goodsPriceDesc;// 价格说明

	@MappingColumn(columnName = "GOODS_BASE_PRICE")
	private BigDecimal goodsBasePrice;// 基础价格（元）

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@MappingColumn(columnName = "GOODS_CREATE_TIME")
	private Date goodsCreateTime;// 创建时间

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@MappingColumn(columnName = "GOODS_UPDATE_TIME")
	private Date goodsUpdateTime;// 修改时间

	public String getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(String goodsId) {
		this.goodsId = goodsId;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public String getGoodsServerDesc() {
		return goodsServerDesc;
	}

	public void setGoodsServerDesc(String goodsServerDesc) {
		this.goodsServerDesc = goodsServerDesc;
	}

	public BigDecimal getGoodsAdvicePrice() {
		return goodsAdvicePrice;
	}

	public void setGoodsAdvicePrice(BigDecimal goodsAdvicePrice) {
		this.goodsAdvicePrice = goodsAdvicePrice;
	}

	public String getGoodsDiscountDesc() {
		return goodsDiscountDesc;
	}

	public void setGoodsDiscountDesc(String goodsDiscountDesc) {
		this.goodsDiscountDesc = goodsDiscountDesc;
	}

	public String getGoodsPriceDesc() {
		return goodsPriceDesc;
	}

	public void setGoodsPriceDesc(String goodsPriceDesc) {
		this.goodsPriceDesc = goodsPriceDesc;
	}

	public BigDecimal getGoodsBasePrice() {
		return goodsBasePrice;
	}

	public void setGoodsBasePrice(BigDecimal goodsBasePrice) {
		this.goodsBasePrice = goodsBasePrice;
	}

	public Date getGoodsCreateTime() {
		return goodsCreateTime;
	}

	public void setGoodsCreateTime(Date goodsCreateTime) {
		this.goodsCreateTime = goodsCreateTime;
	}

	public Date getGoodsUpdateTime() {
		return goodsUpdateTime;
	}

	public void setGoodsUpdateTime(Date goodsUpdateTime) {
		this.goodsUpdateTime = goodsUpdateTime;
	}
}
